<%@ page import="com.ant.myagile.backlog.UserStory"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="layout" content="main" />
<title>Create new User Story</title>
</head>
<body>
	<div style="margin: auto; width: 90%; text-align: left">
		<span><a
			href="${createLink(controller:'UserStory',action:'createUserStory')}"><img
				alt="setting" src="../images/skin/add-icon.png"> New Story </a></span>
	</div>
	<div style="clear: both"></div>
	<table cellspacing="0" border="1" class="table-customize">
		<thead>
			<tr>
				<th>ID</th>
				<th>Name</th>
				<th>Description</th>
				<th>Project</th>
				<th>Status</th>
				<th>Value</th>
				<th>Delete</th>
				<th>Edit</th>
			</tr>
		</thead>
		<g:each in="${userStoryList}" var="ust" status="i">
			<tr>

				<td>
					${ust.id }
				</td>
				<td>
					${ust.name}
				</td>
				<td>
					${ust.description}
				</td>
				<td>
					${ust.project}
				</td>
				<td>
					${ust.status}
				</td>
				<td>
					${ust.value}
				</td>
				<td>
					<form action="deleteUserStory" controller="userStory"
						style="margin: 0">
						<input type="hidden" value="${ust.id}" name="id">
						<g:submitButton class="btn" value="Delete" name="submit"
							onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"></g:submitButton>
					</form>
				</td>
				<td><a href="editUserStory?id=${ust.id}" class="btn">Edit</a></td>
			</tr>
		</g:each>
	</table>
</body>
</html>
